import java.util.Scanner;

public class Test {
    public static int max2(int a,int b){
        return Math.max(a,b);
    }
    public static int max3(int a,int b,int c){
        int max=max2(a,b);
        return max2(max,c);
    }
    public static void main(String[] args){
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入三个整数:");
        int num1=scanner.nextInt();
        int num2=scanner.nextInt();
        int num3=scanner.nextInt();
        int tmp=max3(num1,num2,num3);
        System.out.println("三个数中最大值是:"+tmp);
    }
}
